#!/bin/bash

START_DIR=$PWD
SOURCE_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"

run_pytest(){
    pwd_dir=`pwd`
    cd "${SOURCE_ROOT}"

    python3 -m pytest -q tests

    #return back to the pwd before running the script
    cd "${pwd_dir}"
}

run_omni_placement(){
    # OmniPlacement build.sh to trigger unit test
    bash "${SOURCE_ROOT}/omni/accelerators/placement/build.sh" "-ut"
}

run_pytest
run_omni_placement



